<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01_BOM操作</title>
</head>
<body>

<button onclick="alert('请先登录')">弹出警告</button>
<button onclick="confirm('是否删除？')">弹出确认框</button>

<script>
    console.log(parseInt(6.6));
    console.log(parseInt(6.1))
    console.log(parseInt('6.9'))
    console.log(parseInt('hhhh'))

    console.log(parseFloat(6.6))
    console.log(parseFloat(6.1))
    console.log(parseFloat(6))
    console.log(parseFloat('6.9'))
    console.log(parseFloat('hhhh'))

    //isNaN():判断参数是否为NaN，如果NaN返回true,否则返回false
    console.log(isNaN('hhh'))
    console.log(isNaN(6))
    console.log(isNaN('6'))
    console.log(isNaN(6.6))
</script>


</body>
</html>